
.client-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.set{
    width: 30px;
    height: 600px;
    background-color: rgba(50, 55, 61);
    display: flex;
    flex-direction: column;
    border-top-left-radius: 5px; 
    border-bottom-left-radius: 5px;
    z-index: 2;
}

.set .set-1{
    width: 30px;
    height: 30px;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center center;
}

.set .set-2{
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center center;
}

.main {
    width: 700px;
    height: 600px;
    background-color: rgb(238, 238, 238);

    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;

    display: flex;

    z-index: 2;
}

.main .left {
    width: 30%;
    height: 100%;
    background-color: rgb(46, 50, 56);
}

.main .right {
    width: 70%;
    height: 100%;
    padding: 0 15px;
}

.cover {
    width: 100%;
    height: 100%;

    background-image: url(../pic/backdrop.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    /* 为了让 .cover 和 .main 能够重叠, 给 .cover 加上个定位属性 */
    position: absolute;
    top: 0;
    left: 0;

    /* 设置了下 z 轴坐标 */
    z-index: 1;

    /* 使用 css 滤镜效果, 让背景图变的朦胧起来 */
    filter: blur(40px);
}

.main .left .user {
    height: 70px;
    font-size: 18px;
    line-height: 80px;
    color: white;
    padding: 10px 15px;
    /* 使用弹性布局, 让里面的元素, 水平方向排列 */
    display: flex;
    align-items: center; /* 垂直居中 */
}

.main .left .search {
    height: 35px;
    padding: 0 20px;

    /* 使用弹性布局, 让里面的元素, 水平方向排列 */
    display: flex;
    justify-content: center;
    align-items: center;
}


.main .left .search input {
    height: 30px;
    width: 90%;
    line-height: 34px;
    font-size: 14px;
    color: white;
    background-color: rgb(38, 41, 46);

    /* 去除边框和轮廓线 */
    border: none;
    outline: none;
    /* 输入框里的文字和左侧边界有个边距 */
    padding-left: 10px;

    border-radius: 5px;
}

.main .left .search button {
    height: 30px;
    width: 10%;
    border: none;
    outline: none;

    background-color: rgb(38, 41, 46);

    border-radius: 5px;
    background-image: url(../pic/find.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center center;
}

.main .left .search button:active {
    background-color: grey;
}

.main .left .tab {
    height: 6%;
    display: flex;
    align-items: center;
}

.main .left .tab .tab-session {
    height: 100%;
    width: 50%;

    background-image: url(../pic/session.png);
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: center center;
}


.main .left .tab .tab-friend {
    height: 100%;
    width: 50%;

    background-image: url(../pic/friend1.png);
    background-repeat: no-repeat;
    background-size: 24px 24px;
    background-position: center center;
}

.main .left .list {
    height: 75%;
    position: relative;
    /* 如果里面的内容太多了, 就自动提供一个滚动条 */
    overflow: auto;
}


.main .left .list button{
    height: 30px;
    width: 80%;
    position: absolute;
    left: 20px;

    background-color: #10ad32;
    border: none;
    font-size: 15px;
    
    color: #ffffff;
    border-radius: 5px;
}

.main .left .list button:active{
    background-color: #909c933a;
}

.main .left .list li {
    height: 11%;
    padding: 1% 20px;
    color: white;
    border-top: 1px solid black;
}

.main .left .list .selected {
    background-color: rgb(46, 54, 65);
}

/* 会话列表 */
.main .left .list li h3{
    height: 48%;
    font-size: 15px;
}
.main .left .list li p {
    height: 50%;
    font-size: 10px;
    line-height: 20px;
}

/* 好友列表 */
.main .left .list li h4 { 
    height: 48%;
    line-height: 40px;
    font-size: 15px;
}

/* 元素隐藏 */
.hide {
    display: none;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
    display: none;
}

.main .right .title {
    height: 6%;
    line-height: 45px;
    font-size: 15px;
    text-align: center;
    border-bottom: 2px solid #ccc;    
}

.main .right .load_button {
    height: 18px;
    text-align: center;
    border-bottom: none;
}

.main .right .load_button button {
    height: 18px;
    width: 18px;
    border: none;
    outline: none;
    position: relative;

    background-color: rgb(238, 238, 238);

    border-radius: 5px;

    background-image: url(../pic/update.png);
    background-repeat: no-repeat;
    background-size: 19px 19px;
}

.main .right .load_button button:active {
    background-color: grey;
    background-image: url(../pic/Loading.png);
}
.main .right .message-show {
    height: 70%;

    /* 滚动条 */
    overflow: auto;
}

/* 好友申请列表 */
.main .right .message-show .requestUser{
    height: 50px;
    width: 100%;
    display: flex;
    background-color: #e6e6e6;
    align-items: center;
    border-bottom: 1px solid #ccc; 
}

.main .right .message-show .requestUser .user-name{
    width: 150px;
    font-weight: bold;
    font-size: 15px;
}
.main .right .message-show .requestUser .user-message{
    font-size: 10px;
    color: rgb(104, 104, 104);
    width: 146px;
}

.main .right .message-show .requestUser .true{
    width: 75px;
    height: 30px;
    margin: auto 0px auto 6px;
    border-radius: 5px;
    background-color: #10ad32;
    font-size: 15px;
    color: white;
    font-weight: bold;
}
.main .right .message-show .requestUser .true:active{
    background-color: #909c933a;
}
.main .right .message-show .requestUser .false{
    width: 75px;
    height: 30px;
    margin: auto 0px auto 6px;
    border-radius: 5px;
    background-color: #d40d0deb;
    font-size: 15px;
    color: white;
    font-weight: bold;
}
.main .right .message-show .requestUser .false:active{
    background-color: #909c933a;
}
/* 建群列表 */
.main .right .message-show .group{
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    background-color: #e6e6e6;
    border-bottom: 1px solid #bcbcbc;
}
.main .right .message-show .ok{
    width: 90px;
    height: 35px;
    background-color: #10ad32;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
}
.main .right .message-show .ok:active{
    background-color: #909c933a;
}
.main .right .message-show .group input{
    width: 40px;
    height: 18px;
}
.main .right .message-show .group .group-name{
    font-size: 19px;
    font-weight: bold;
    width: 260px;
}

.main .right .message-show .message {
    margin-top: 5px;
    display: flex;
}

.main .right .message-show .user-info{
    width: 100%;
    height: 55px;
    display: flex;
    align-items: center;
    background-color: #e6e6e6;
    border-bottom: 1px solid #bcbcbc;
}
.main .right .message-show .user-info input{
    width: 180px;
    height: 30px;
    font-size: 13px;
}

.main .right .message-show .user-info .user-name{
    font-size: 15px;
    font-weight: bold;
    width: 180px;
}

.main .right .message-show .user-info button{
    width: 85px;
    height: 30px;
    margin: auto 0px auto 6px;
    background-color: #10ad32;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    color: white;
    font-weight: bold;
}

.main .right .message-show .user-info button:active{
    background-color: #909c933a;
}

/* 元素靠左 */
.main .right .message-show .message-left {
    justify-content: flex-start;
}

/* 元素靠右 */
.main .right .message-show .message-right {
    justify-content: flex-end;
}

.main .right .message-show .message .box {
    width: auto;
    max-width: 400px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.main .right .message-show .message .box h4 {
    /* 去掉加粗效果 */
    font-weight: normal;

    height: 18px;
    line-height: 20px;
    font-size: 13px;
}

.main .right .message-show .message .box h5 {
    /* 去掉加粗效果 */
    font-weight: normal;
    display: flex;
    justify-content: flex-end;
    height: 18px;
    line-height: 20px;
    font-size: 13px;
}

.main .right .message-show .message .box p {
    padding: 10px;
    border-radius: 10px;
}

/* 设置消息背景色 */
.main .right .message-show .message-left .box p {
    background-color: #fff;
}

.main .right .message-show .message-right .box p {
    background-color: rgb(128, 196, 109);
}

.main .right .message-input {
    /* 先把 textarea 转成块级元素, 方便设置尺寸啥的 */
    display: block;
    width: 100%;
    height: 90px;
    border: none;
    outline: none;

    margin-top: 2px;
    background-color: rgb(238, 238, 238);
    padding: 5px;
    resize: none;
}
.main .right .tool-send {
    height: 6%;
    width: 100%;
    display: flex;
}

.main .right .send {
    height: 100%;
    width: 50%;
    display: flex;
    justify-content: flex-end;
}

.main .right .tool{
    height: 100%;
    width: 50%;
    display: flex;
    justify-content: flex-start;
}

.main .right .send button {
    height: 80%;
    width: 50px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.main .right .send button:active {
    background-color: grey;
    color: white;
}